sysctl: zero structures on the stack
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 23 Apr 2015 11:07:59 +0000 (13:07 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 23 Apr 2015 11:07:59 +0000 (13:07 +0200)
commitd5f863db94391b6ff52aa397b3d77d7f527daef2
tree5c7156e279455053190fc1c0f3c71a6790c66f9c
parent47b931e763d842a78e9054fe002c7c1e0342b014
sysctl: zero structures on the stack

None of these structures currently contain a hole.  However, there is a risk
that a change to the structure might introduce a hole, and thus create a
hypervisor stack leak to the toolstack.

Mitigate this risk by preemptively zeroing these structures.  These are not
hotpaths, so the slight overhead is not an issue.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/common/sysctl.c